USE [TP_AI_Telefonia]
GO

/****** Object:  Table [dbo].[PlanesPaquete]    Script Date: 11/7/2012 9:46:11 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[PlanesPaquete](
	[PlanPaqueteId] [int] IDENTITY(1,1) NOT NULL,
	[PlanId] [int] NOT NULL,
	[PaquetePlanId] [int] NOT NULL,
 CONSTRAINT [PK_PlanesPaquete_1] PRIMARY KEY CLUSTERED 
(
	[PlanPaqueteId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[PlanesPaquete]  WITH CHECK ADD  CONSTRAINT [FK_PlanesPaquete_Planes] FOREIGN KEY([PlanId])
REFERENCES [dbo].[Planes] ([PlanId])
GO

ALTER TABLE [dbo].[PlanesPaquete] CHECK CONSTRAINT [FK_PlanesPaquete_Planes]
GO

ALTER TABLE [dbo].[PlanesPaquete]  WITH NOCHECK ADD  CONSTRAINT [FK_PlanesPaquete_Planes1] FOREIGN KEY([PlanPaqueteId])
REFERENCES [dbo].[Planes] ([PlanId])
GO

ALTER TABLE [dbo].[PlanesPaquete] NOCHECK CONSTRAINT [FK_PlanesPaquete_Planes1]
GO

